package voinarovskaya.pages;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;

public class IMDbResultPage extends Page{
	@FindBy(how = How.ID , using = "imdbsearch")	
	@CacheLookup
	public WebElement ImdbSearchField;
	
	@FindBy(how = How.XPATH , using = "//*[@value='Search']")
	@CacheLookup
	public WebElement ImdbSearchButton;
	
	@FindBy(how = How.XPATH , using = "//*[@class='imdbresult']/td[@class='title']/a")	
	public WebElement FirthFilm;	
	
	public IMDbResultPage(WebDriver webDriver) {
		super(webDriver);
		PageFactory.initElements(webDriver, this);
	}

}
